package com.ywjh.inter.entity;

import java.sql.Timestamp;

import com.ywjh.inter.utils.StrUtil;

import net.sf.json.JSONObject;

public class PatientSportRecordEntity {
	int id;
	int sport_plan_id;
	Timestamp add_time;
	String way;
	int time;
	int status;
	int patient_id;
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public int getSport_plan_id() {
		return sport_plan_id;
	}
	public void setSport_plan_id(int sport_plan_id) {
		this.sport_plan_id = sport_plan_id;
	}
	public Timestamp getAdd_time() {
		return add_time;
	}
	public void setAdd_time(Timestamp add_time) {
		this.add_time = add_time;
	}
	public String getWay() {
		return way;
	}
	public void setWay(String way) {
		this.way = way;
	}
	public int getTime() {
		return time;
	}
	public void setTime(int time) {
		this.time = time;
	}
	public int getStatus() {
		return status;
	}
	public void setStatus(int status) {
		this.status = status;
	}
	public int getPatient_id() {
		return patient_id;
	}
	public void setPatient_id(int patient_id) {
		this.patient_id = patient_id;
	}
	public JSONObject toJson() {
		JSONObject json=new JSONObject();
		json.put("id", this.id);
		json.put("sport_plan_id", this.sport_plan_id);
		json.put("way", this.way);
		json.put("time", this.time);
		json.put("status", this.status);
		json.put("patient_id", this.patient_id);
		json.put("add_time", StrUtil.getYYYYMMDDHHMI(add_time));
		return json;
	}
	
	
}
